

<% form_for :user, @user, :url => { :action => "login" } do |f| %>

<p><label for="name">User name</label><br/>
  <%= f.text_field :name  %></p>
  <%= submit_tag 'Login' %>
<% end %>
  
